package com.briup.mt.ai;

import com.baidu.aip.bodyanalysis.AipBodyAnalysis;

/**
 * @author wyq
 * @create 2020-12-21 15:58
 */
public class AipPresonClient {
    //设置APPID/AK/SK
    public static final String APP_ID = "23189232";
    public static final String API_KEY = "sofcHmwXklwO7a9qEQE7zTOc";
    public static final String SECRET_KEY = "zkMIDxglOtjurRhowC1Ys520ujenwX70";

    // 2.本类内部创建对象实例
    private static AipBodyAnalysis instance = null;

    private AipPresonClient() {
    }

    /**
     * 1.构造方法私有化，外部不能new
     */


    // 3.提供一个公有的静态方法，返回实例对象
    public static AipBodyAnalysis  getInstance() {
        if (instance == null) {
            instance =  new AipBodyAnalysis (APP_ID, API_KEY, SECRET_KEY);

        }
        return instance;
    }
}
